package com.chixing.ih.json;

import java.util.HashMap;

/**
 * @author 刘岩
 * @version 1.0
 * @Desc Practice makes perfect
 * @date 2020/9/10 14:23
 */
public class ReJson {

    public static HashMap<String, Object> returnJson(Integer code, String msg) {
        HashMap<String, Object> hashMap = new HashMap<>();
        hashMap.put("code", code);
        hashMap.put("msg", msg);
        return hashMap;
    }

    public static HashMap<String, Object> returnJson(Integer code, String msg, Object object) {
        HashMap<String, Object> hashMap = new HashMap<>();
        hashMap.put("code", code);
        hashMap.put("msg", msg);
        hashMap.put("content", object);
        return hashMap;
    }


}
